package com.tledu.email.mapper;

import java.util.List;
import com.tledu.email.domain.EmailWrite;

/**
 * 写信Mapper接口
 * 
 * @author ruoyi
 * @date 2024-08-29
 */
public interface EmailWriteMapper 
{
    /**
     * 查询写信
     * 
     * @param id 写信主键
     * @return 写信
     */
    public EmailWrite selectEmailWriteById(Long id);

    /**
     * 查询写信列表
     * 
     * @param emailWrite 写信
     * @return 写信集合
     */
    public List<EmailWrite> selectEmailWriteList(EmailWrite emailWrite);

    /**
     * 新增写信
     * 
     * @param emailWrite 写信
     * @return 结果
     */
    public int insertEmailWrite(EmailWrite emailWrite);

    /**
     * 修改写信
     * 
     * @param emailWrite 写信
     * @return 结果
     */
    public int updateEmailWrite(EmailWrite emailWrite);

    /**
     * 删除写信
     * 
     * @param id 写信主键
     * @return 结果
     */
    public int deleteEmailWriteById(Long id);

    /**
     * 批量删除写信
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmailWriteByIds(Long[] ids);

    // 存为草稿
    public int saveAsDraft(EmailWrite emailWrite);
}
